package org.dromara.system.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SysUserMachine;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 机具信息业务对象 sys_user_machine
 *
 * @author Lion Li
 * @date 2025-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@AutoMapper(target = SysUserMachine.class, reverseConvertGenerate = false)
public class SysUserMachineBo extends BasePageReqDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sn;


    private String merchantCode;

    private String merchantName;

    private Integer simCount;

    private Long machinePolicyId;

    /**
     * 交易金额
     */
    private BigDecimal dealSum;

    private Long brandId;

    private Long lineId;

    private Long MachineModelId;

    private Integer isStageBack;

    //是否达标返现
    private Integer isCompleteBack;

    //押金
    private BigDecimal deposit;


    private Long bindUserId;

    private Date bindTime;

    private BigDecimal dealCashBackSumTag;

    private Integer dealCashBackCount;

    /**
     * 备注
     */
    private String remark;


    private String bindUserName;

    private String policyName;

    private String brandName;

    private String lineName;

    private String modelName;

    private Date startTime;

    private Date endTime;

    private String startSn;

    private String endSn;

    //代理编号
    @TableField(jdbcType = JdbcType.VARCHAR)
    private String affiliatedSerialNumber;

    //代理团队
    private String affiliatedNickName;

    //会员分组
    private String memberGroupName;

    //会员编号
    private String memberGroupCode;

    //会员编号
    private Long memberGroupId;

}
